﻿@page
@{ Layout = "_Layout"; }

<div style="padding:0 11px;">
    <div>
        <el-form v-on:submit.native.prevent :inline="true" :size="euiSize">
            <el-form-item label="关键字">
                <el-input v-model="form.keywords" placeholder="组织、用户名、姓名" prefix-icon="el-icon-search" clearable></el-input>
            </el-form-item>
            <el-form-item>
                <el-button :size="euiSize" icon="el-icon-search" type="primary" v-on:click="btnUserSearchClick">查 询</el-button>
            </el-form-item>
        </el-form>
    </div>
    <div>
        <el-table ref="userTable" :data="list" :size="euiSize"
                  style="width: 100%">
            <el-table-column label="#"
                             type="index"
                             width="60"
                             align="left">
                <template scope="scope">
                    <span>{{scope.$index + 1}}</span>
                </template>
            </el-table-column>
            <el-table-column label="账号">
                <template slot-scope="scope">
                    <el-link :underline="false" type="primary" v-on:click="utils.openUserView(scope.row.user.id)">{{scope.row.user.userName}}</el-link>
                </template>
            </el-table-column>
            <el-table-column prop="user.displayName" label="姓名">
            </el-table-column>
            <el-table-column prop="user.organNames" label="组织" show-overflow-toolti>
            </el-table-column>
            <el-table-column prop="answerTotal" label="累计答题" width="100">
            </el-table-column>
            <el-table-column prop="useTime" label="累计用时" width="100">
            </el-table-column>
            <el-table-column prop="rightTotal" label="累计答对" width="100" align="right">
            </el-table-column>
            @await Html.PartialAsync("_PartialTableEmpty")
        </el-table>
    </div>
</div>
@section Scripts{
    <script src="/sitefiles/assets/js/admin/exam/examPkUsers.js" type="text/javascript"></script>
}